<!DOCTYPE html>
<html>
<head>
	<title>角色管理</title>
	<#include "../common.ftl">
</head>
<body class="childrenBody">

<form class="layui-form" >
	<blockquote class="layui-elem-quote quoteBox">
        角色授权管理
	</blockquote>

    <fieldset class="layui-elem-field layui-field-title">
        <div class="layui-field-box" align="center">
            <form class="layui-form">
                <div class="layui-inline">
                    <#if permissions?seq_contains("502001")>
                        <div class="layui-input-inline">
                            <input type="text" name="roleName"
                                   class="layui-input
					searchVal" placeholder="角色名" />
                        </div>
                        <a class="layui-btn search_btn" data-type="reload"><i
                                    class="layui-icon">&#xe615;</i> 搜索</a>
                        <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                    </#if>

                </div>
            </form>
        </div>
    </fieldset>

    <hr>

    <div>
        <a class="layui-btn" data-type="reload" id="refresh"><i
                    class="layui-icon">&#xe669;</i> 刷新</a>
    </div>

    <hr>

    <#-- 角色信息显示表 -->
	<table id="roleList" class="layui-table"  lay-filter="roles"></table>

    <#-- 头部工具栏 -->
	<script type="text/html" id="toolbarDemo">
		<div class="layui-btn-container">
            <#if permissions?seq_contains("502002")>
			<a class="layui-btn layui-btn-normal addNews_btn" lay-event="add">
				<i class="layui-icon">&#xe608;</i>
				添加角色
			</a>
            </#if>
            <#if permissions?seq_contains("502003")>
			<a class="layui-btn layui-btn-normal delNews_btn" lay-event="grant">
				<i class="layui-icon">&#xe672;</i>
				授权
			</a>
            </#if>
		</div>
	</script>

	<!-- 行工具栏 操作-->
	<script id="roleListBar" type="text/html">
        <#if permissions?seq_contains("502004")>
		<a class="layui-btn layui-btn-xs" id="edit" lay-event="edit">编辑</a>
        </#if>
        <#if permissions?seq_contains("502005")>
		<a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="del">删除</a>
        </#if>
	</script>
</form>
<script type="text/javascript" src="${ctx}/js/role/role.js"></script>

</body>
</html>